package com.geovis.emergency.spd.entity.pc.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 应急预案指挥模块-灾害管理保存DTO
 * </p>
 *
 * @author Lonsho
 * @version 1.0
 * @date 2022/6/9
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "PcDisasterDTO", description = "应急预案指挥模块-灾害管理保存DTO")
public class PcDisasterSaveDTO {


    @ApiModelProperty(value = "名称")
    @NotEmpty(message = "灾害名称不能为空")
    @Length(max = 50, message = "灾害名称不能超过50个字符")
    private String name;

    @ApiModelProperty(value = "类型")
    @NotEmpty(message = "灾害类型不能为空")
    private String type;

    @ApiModelProperty(value = "事件类型")
    @NotEmpty(message = "事件类型不能为空")
    private String eventType;

    @ApiModelProperty(value = "台风id")
    private String typhoonNo;

    @ApiModelProperty(value = "数据状态(1-启用，0-禁用)")
    private String dataStatus;

    @ApiModelProperty(value = "预案id")
    private String pcPlanId;
}
